﻿using MediatR;
using System.ComponentModel.DataAnnotations;

namespace Architecture.Api.Application.Commands.SourceCommand
{
    public class SourceCreateCommand:IRequest<int>
    {
        /// <summary>
        /// 溯源Id
        /// </summary>
        public int SourceId { get; set; }
        /// <summary>
        /// 溯源编号
        /// </summary>
        public long SourceNo { get; set; }
        /// <summary>
        /// 商品编号
        /// </summary>
        public long GoodNo { get; set; }
        /// <summary>
        /// 保质期
        /// </summary>
        public int ShelfLife { get; set; }
        /// <summary>
        /// 生产批次
        /// </summary>
        public string? ProductionBatch { get; set; }
        /// <summary>
        /// 生产许可证号
        /// </summary>
        public string? ProductionLicenseNumber { get; set; }
        /// <summary>
        /// 生产企业
        /// </summary>
        public string? ProductionEnterprise { get; set; }
        /// <summary>
        /// 封面图
        /// </summary>
        public string? GoodPicture { get; set; }
        /// <summary>
        /// 产品检验报告
        /// </summary>
        public string? ProductInspectionReport { get; set; }
        public string? CreateBy { get; set; } = "张三";
        public DateTime? CreateDate { get; set; } = DateTime.Now;
        public string? UpdateBy { get; set; }
        public DateTime? UpdateDate { get; set; }
        public bool IsDelete { get; set; }
    }
}
